package com.kaifamiao.month04.day01;

public class Sub extends Sup{
    static int a = 3;
    int b = 4;
    {
        System.out.println("sub {}");
    }

    static {
        System.out.println("sub static{}");
    }

    public Sub(){
        System.out.println("Sub()");
        a();
        System.out.println(a);
        System.out.println(b);
    }

    @Override
    public void a(){
        System.out.println("sub a()");
        System.out.println("sub a() a:" + a);
        System.out.println("sub a() b:" + b);
    }
}
